<?php
App::uses('AppModel', 'Model');
/**
 * User Model
 *
 */
class User extends AppModel {

/**
 * Primary key field
 *
 * @var string
 */
	public $primaryKey = 'UserID';

/**
 * Display field
 *
 * @var string
 */
	public $displayField = 'UserID';

/**
 * Validation Rules
 *
 * 
 */
	public $validate = array(
    	
    	'UserName' => array(
    		'notempty' => array(
                'rule' => array('notempty'),
                'message' => 'Please enter a user name.'
        	),
    	),
        'Password' => array(
    		'notempty' => array(
                'rule' => array('notempty'),
                'message' => 'Please enter a password.'
            ),
        ),
		'FirstName' => array(
            'notempty' => array(
                'rule' => array('notempty'),
            'message' => 'Please enter your first name.'
            ),
        ),
        'LastName' => array(
            'notempty' => array(
                'rule' => array('notempty'),
            'message' => 'Please enter your last name.'
            ),
        )); 
}


